
/**
* Get all online evnts service
*/
app.service("eventsServices", ['$http',
    function($http) 
	{
		var servicebase = '../../Core/server.class.php';
	
        this.getOnlineEvents = function() 
		{
			alert('getOnlineEvents');
            console.info("getOnlineEventsService - called"); 
			$http.post(servicebase, { "service" : "getOnlineEvents"}).
			success(function(data, status) 
			{
				alert('getEventsOnlineCommand - call success');
				console.info("getEventsOnlineCommand - call success"); 
				return data;
			})
			.
			error(function(data, status) 
			{
				alert('getOnlineEventsService - call failed');
				console.error("getOnlineEventsService - call failed"); 			
				return data;				
			});
        };
    }
]);